package cn.yougou.common;

/**
 * 统一结果返回类参数枚举
 * @author  kup
 * @since 2020-11-30
 */

public enum ResponseCode {

    SUCCESS_CODE("0", "SUCCESS"),
    ERROR_CODE("1", "ERROR"),
    ERROR_UNKNOWN_CODE("-1","未知错误"),
    NEED_LOGIN("10", "NEED_LOGIN"),//需要登录
    ILLEGAL_ARGUMENT("20", "ILLEGAL_ARGUMENT");//非法参数

    ResponseCode(){}
    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private  String code;
    private  String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
